package com.example.design.patterns.冰河.行为模式.策略模式;

import com.example.design.patterns.冰河.行为模式.策略模式.concreteStrategy.StrategyAImpl;
import com.example.design.patterns.冰河.行为模式.策略模式.concreteStrategy.StrategyBImpl;
import com.example.design.patterns.冰河.行为模式.策略模式.concreteStrategy.StrategyCImpl;
import com.example.design.patterns.冰河.行为模式.策略模式.context.Context;

public class Test {
    public static void main(String[] args) {
        Context context = new Context(new StrategyAImpl());
        context.doMethod();

        context = new Context(new StrategyBImpl());
        context.doMethod();

        context = new Context(new StrategyCImpl());
        context.doMethod();

    }
}
